package com.wbl.train.common.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 王博纶
 * @since 2024-02-10
 * @description 每日车次
 */
@Data
@Accessors(chain = true)
@TableName("daily_train")
@Schema(name = "DailyTrain 对象", description = "每日车次 实体类")
public class DailyTrainEntity {

    @Schema(description = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "日期")
    private LocalDate date;

    @Schema(description = "车次编号")
    private String code;

    @Schema(description = "车次类型|枚举[TrainTypeEnum]")
    private String type;

    @Schema(description = "始发站")
    private String start;

    @Schema(description = "始发站拼音")
    private String startPinyin;

    @Schema(description = "出发时间")
    private LocalTime startTime;

    @Schema(description = "终点站")
    private String end;

    @Schema(description = "终点站拼音")
    private String endPinyin;

    @Schema(description = "到站时间")
    private LocalTime endTime;

    @Schema(description = "新增时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;


}
